#include "fileparser.h"

#include <fstream>
#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
  ifstream file(argv[1]);

  Parser parser(file);
  
  parser.parse();

  vector<Parser::Pair> edges = parser.getEdges();

  int nNodes = parser.getNumberOfNodes();

  cout << "possuo " << nNodes << " vértices " << endl;

  for (Parser::Pair edge: edges) {
    cout << edge.node1 << ", " << edge.node2 << endl;
  }  
  
}
